package com.ruoyi.wetest.stats;

/**
 * 接收到的单个消息信息.
 *
 * @author luch
 */
public class SingleCodeStat {
    /**
     * 事务
     */
    protected final String transName;
    /**
     * 是否是发送的消息.true 发送, false 接收
     */
    protected final boolean transmit;

    /**
     * 发送 <-> 接收, 接收 <-> 发送 耗时
     */
    protected final int time;
    /**
     * 状态
     */
    protected final int status;

    protected SingleCodeStat(String transName, boolean transmit, int time, int status) {
        this.transName = transName;
        this.transmit = transmit;
        this.time = time;
        this.status = status;
    }


    public boolean isTransmit() {
        return transmit;
    }


    public int getTime() {
        return time;
    }

    public String getTransName() {
        return transName;
    }

    public int getStatus() {
        return status;
    }
}
